import request from '@/utils/request'

// 草稿列表
export function draftLists(params?: Record<string, any>) {
    return request.get({ url: '/draft/list', params })
}

// 草稿详情
export function draftDetail(params: Record<string, any>) {
    return request.get({ url: '/draft/detail', params })
}

// 草稿新增
export function draftAdd(params: Record<string, any>) {
    return request.post({ url: '/draft/add', params })
}

// 草稿编辑
export function draftEdit(params: Record<string, any>) {
    return request.post({ url: '/draft/edit', params })
}

// 草稿删除
export function draftDelete(params: Record<string, any>) {
    return request.post({ url: '/draft/del', params })
}
